import React from 'react'
import { Button, NavBar, Space, Toast } from 'antd-mobile'
import { useNavigate } from 'react-router-dom'
function Home() {
 const nav=useNavigate()
  return (
    <div>
        <NavBar>乘客列表</NavBar>
        <div>铁路局新规，如需购买儿童票，请手动添加儿童信息</div>
        <div>
            <Button onClick={()=>nav('/ck')}>新增乘客</Button>
             <Button>添加微信好友</Button>
        </div>
        <div onClick={()=>nav('/chat')}>去聊天页</div>
    
    </div>
  )
}

export default Home                             